package com.lgrousset.loanssimulator.client.chart.widget;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.lgrousset.loanssimulator.shared.model.Loan;

public class LoansVisualizationAndFields extends Composite {
	private VerticalPanel panel = new VerticalPanel();
	private Loan loan;
	
	public LoansVisualizationAndFields(){
		loan = new Loan(270000.0, 25, 2.91, 0.3);
		
		
		panel.setStyleName("loansVisualizationAndFields");
		panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		panel.add(new LoansVisualization(loan));
		panel.add(new LoanFields(loan));
		
		initWidget(panel);
	}
}
